package com.junko.model;

import com.junko.model.query_helper.BaseQueryHelper;

public class PageForm {
    private Integer page = 1;
    private Integer rows = 10;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public PageForm() {
    }
    public PageForm(Integer page, Integer rows) {
        this.page = page;
        this.rows = rows;
    }
    public PageForm(BaseQueryHelper queryHelper) {
        this.page = queryHelper.getPage();
        this.rows = queryHelper.getRows();
    }
}
